/**
 * create by young (young2f@outlook.com) on 2020/8/16
 */
'use strict';
module.exports = app => {
  const { router, controller } = app;
  router.post('/api/tree/node/create', controller.tree.createNode);
  router.post('/api/tree/node/create/batch', controller.tree.createNodeBatch);
  router.post('/api/tree/find', controller.tree.findTree);
  router.post('/api/trees/find/auth', controller.tree.findTreesWithAuth);
  router.post('/api/tree/nodes/find', controller.tree.findNodes);
  router.post('/api/tree/data/find', controller.tree.findData);
  router.post('/api/tree/node/update', controller.tree.updateNode);
  router.post('/api/tree/node/clear', controller.tree.clearNode);
  router.post('/api/tree/node/delete', controller.tree.deleteNode);
  router.post('/api/tree/node/move', controller.tree.moveNode);
  router.post('/api/tree/data/move', controller.tree.moveTreeData);
  router.post('/api/tree/node/copy', controller.tree.copyNode);
  router.post('/api/tree/node/config', controller.tree.setConfigs);
  router.post('/api/tree/node/output', controller.tree.outputNodes);
  router.post('/api/tree/node/input', controller.tree.inputNodes);
  router.post('/api/tree/node/device/find/all/by/treeId', controller.tree.findAllDevicesByTreeId);

};
